{include file='comdir/head.html'}
<body>
<div class="content">
	<div class="animated fadeInDown">
		<form class="form-horizontal" action="javascript:void(0)" id='frm'>
			<div class="form-group" style="margin:45px 0 15px 0">
				<label class="control-label">名称:</label>
				<input type="text" style="display:inline-block;width:90%;" class="form-control" name="ctypename" value="">
			</div>
			<div class="form-group">
				<input type="hidden" name="specialid" value="{$id}">
				<input type="button" class="btn btn-block btn-blue sub" name="name" value="提交">
		    </div>
		</form>
	</div>
</div>
<script type="text/javascript">
var _URL='{$_URL}';
{literal}
$(function(){
	var ajax_status=true;
	$('.sub').click(function(){
		var url=_URL+"Special/addContentType";
		var formjquery=_ajaxs.from('#frm');
		if(ajax_status===false){return false;}
		ajax_status=false;
		_ajaxs.post(url,'formjquery='+formjquery,function _result(data){
			ajax_status=true;
			layer.msg(data.msg,{icon: 1}, function(){
				if(data.status){
					window.parent.cotenttypelist_back();
				}
			});
		});
	})
})
{/literal}
</script>
</body>
</html>
